package cn.yh.shop.product.service.impl;

import java.util.HashMap;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.yh.shop.product.dao.ImgDao;
import cn.yh.shop.product.model.Img;
import cn.yh.shop.product.service.IImgService;
@Service
public class ImgServiceImpl implements IImgService{
	/**
	 * 图片数据访问对象
	 */
	@Autowired
	private ImgDao imgdao;
	

	@Override
	public List<Img> getImgs() {
		return imgdao.selectImgs();
	}

	@Override
	public List<Img> getImgById(HashMap map) {
		return imgdao.selectImgById(map);
	}

}
